permutations and combinations for BBA-BI